package com.liaowei.post.model.param;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class SpecialColumnStatusParam {
    @NotNull(message = "id不能为空")
    @Min(value = 1,message = "请输入合法id")
    private Long id; // 专栏id
    @NotNull(message = "状态不能为空")
    @Range(min = -1,max = 1,message = "请输入有效的状态")
    private Integer status; // 专栏状态
}
